package com.baidu.fenfayun.demo
import kotlinx.android.synthetic.main.activity_main.*
import android.os.Bundle
import android.app.Activity

import org.jetbrains.anko.*
import android.support.v4.app.*
class Main: FragmentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val manager:FragmentManager = getSupportFragmentManager()
        val transaction:FragmentTransaction = manager.beginTransaction()
        val editFragment:Fragment = EditFragment.Companion.newInstance()
        linearLayout {
            id = 1
            transaction.replace(1,editFragment).commit()
        }
    }
}
